package com.craftcomputing.client.Entry;

import com.google.gwt.json.client.JSONValue;

public class CodeEntry extends EntryPanel {

	public CodeEntry() {
		panel.add(codeEntryPanel);
	}
	public void setPanelStyle(String style){
		panel.setStyleName(style);
	}
	public void updateEntry(JSONValue json){
		codeEntryPanel.update(json);
		entryLabel.setHTML("<b>" + codeEntryPanel.getTitle() + "</b>");
	}
	public String searchText() {
		return "/python/codesamples?search=";
	}
	private CodeEntryPanel codeEntryPanel = new CodeEntryPanel();
}
